package cn.sc.allinpay.allfavour.business.common.data;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * description：消费限制
 * 仅金额券有该字段
 * author：pany
 * on 2018/8/2 16:17
 */
public class LimitData implements Parcelable {
    private String specAmt;//单位为分
    private String reduceAmt;//单位为分
    private String maxAmt;//单位为分

    public LimitData() {

    }

    protected LimitData(Parcel in) {
        specAmt = in.readString();
        reduceAmt = in.readString();
        maxAmt = in.readString();
    }

    public String getSpecAmt() {
        return specAmt;
    }

    public void setSpecAmt(String specAmt) {
        this.specAmt = specAmt;
    }

    public String getReduceAmt() {
        return reduceAmt;
    }

    public void setReduceAmt(String reduceAmt) {
        this.reduceAmt = reduceAmt;
    }

    public String getMaxAmt() {
        return maxAmt;
    }

    public void setMaxAmt(String maxAmt) {
        this.maxAmt = maxAmt;
    }

    public static final Creator<LimitData> CREATOR = new Creator<LimitData>() {
        @Override
        public LimitData createFromParcel(Parcel in) {
            return new LimitData(in);
        }

        @Override
        public LimitData[] newArray(int size) {
            return new LimitData[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(specAmt);
        parcel.writeString(reduceAmt);
        parcel.writeString(maxAmt);
    }
}
